package com.ruoyi.blog.service;

import com.ruoyi.blog.domain.BlogArticle;

import java.util.List;

/**
 * Created by lf on 2020/12/20.
 */
public interface IBlogArticleService {

    public int addNewArticle(BlogArticle article);


    public String stripHtml(String content);

    public int updateArticleState(Long[] aids, Integer state) ;

    public int restoreArticle(Integer articleId) ;

    public BlogArticle getArticleById(Long aid) ;

    public void pvStatisticsPerDay() ;

    /**
     * 获取最近七天的日期
     * @return
     */
    public List<String> getCategories(long id) ;

    /**
     * 获取最近七天的数据
     * @return
     */
    public List<Integer> getDataStatistics(long id) ;

    List<BlogArticle> getArticleList(BlogArticle article);
}
